<template>
    <h2>商品详情</h2>
    <h3>id:{{ id}}</h3>
</template>

<script lang='ts' setup>
import {useRoute} from 'vue-router'
const route=useRoute()
const id=route.params.id
</script>

<style lang='scss' scoped>
</style>